﻿/**
 * Project SEM 2 - SMS for schools
 * File author:ToanMH
 * Datetime create:14/11/2010
 * File version:1.0
 * File description:
 * 
 * Modify history:
 * 
 */
using System;
using System.Collections.Generic;
using System.Text;
using org.smslib;
using System.Drawing;

namespace sms_modem_control
{
    public class GatewayStatusNotification : IGatewayStatusNotification
    {

        public void process(AGateway gateway, org.smslib.AGateway.GatewayStatuses oldStatus, org.smslib.AGateway.GatewayStatuses newStatus)
        {
            //Console.WriteLine(">>> Gateway Status change for " + gateway.getGatewayId() + ", OLD: " + oldStatus + " -> NEW: " + newStatus);
            Programe.control.upDateMonitorBack(">>> Gateway Status change for " + gateway.getGatewayId() + ", OLD: " + oldStatus + " -> NEW: " + newStatus, Color.BlueViolet);
        }
    }
}
